package com.lean.android.adsdk

import android.text.SpannableStringBuilder
import android.text.Spanned

object SpanUtils {

    fun makeSpan(content: CharSequence, vararg tags: Any): CharSequence {
        val ssb = SpannableStringBuilder(content)
        for (tag in tags) {
            ssb.setSpan(tag, 0, ssb.length, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE)
        }
        return ssb
    }
}
